/**
 *　SearchItem
 */
/*
* 向下级传递  updateState
* */

 var React = require("react");
 var CommonItem = require("./CommonItem");
 var CommonMask = require("./CommonMask");
 var CommonHeader = require("./CommonHeader");
 var AddressItem = React.createClass({
    mixins: [CommonItem],
    render: function (){
        const {type}=this;
        const {data, updateState}=this.props;
        const {search}=data;
        return (
            <div ref="container" className="details-item">
                <CommonMask type={type} updateState={updateState} data={data} />
                <CommonHeader type={type} updateState={updateState} />
                <div className="details-content align-center">
                    <div className="info">{search}</div>
                </div>
            </div>
        )
    }
 });

 module.exports = AddressItem;
